(self["webpackChunkant_design_pro"] = self["webpackChunkant_design_pro"] || []).push([["mf-dep_vendors-node_modules_ant-design_icons_es_icons_LeftOutlined_js-node_modules_ant-design_pro-de-146f12"],{

/***/ "./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ __webpack_exports__["default"] = (LeftOutlined);


/***/ }),

/***/ "./node_modules/@ant-design/icons/es/icons/LeftOutlined.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _ant_design_icons_svg_es_asn_LeftOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/LeftOutlined */ "./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js");
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/es/components/AntdIcon.js");

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY




var LeftOutlined = function LeftOutlined(props, ref) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_2__.default, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)({}, props), {}, {
    ref: ref,
    icon: _ant_design_icons_svg_es_asn_LeftOutlined__WEBPACK_IMPORTED_MODULE_3__.default
  }));
};

LeftOutlined.displayName = 'LeftOutlined';
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(LeftOutlined));

/***/ }),

/***/ "./node_modules/@ant-design/pro-descriptions/es/index.js":
/*!***************************************************************!*\
  !*** ./node_modules/@ant-design/pro-descriptions/es/index.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FieldRender": function() { return /* binding */ FieldRender; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
/* harmony import */ var antd_es_config_provider_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/config-provider/style */ "./node_modules/antd/es/config-provider/style/index.js");
/* harmony import */ var antd_es_config_provider__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! antd/es/config-provider */ "./node_modules/antd/es/config-provider/index.js");
/* harmony import */ var antd_es_descriptions_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/descriptions/style */ "./node_modules/antd/es/descriptions/style/index.js");
/* harmony import */ var antd_es_descriptions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd/es/descriptions */ "./node_modules/antd/es/descriptions/index.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/form/style */ "./node_modules/antd/es/form/style/index.js");
/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd/es/form */ "./node_modules/antd/es/form/index.js");
/* harmony import */ var antd_es_space_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/space/style */ "./node_modules/antd/es/space/style/index.js");
/* harmony import */ var antd_es_space__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd/es/space */ "./node_modules/antd/es/space/index.js");
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ant-design/icons */ "./node_modules/@ant-design/icons/es/icons/CloseOutlined.js");
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ant-design/icons */ "./node_modules/@ant-design/icons/es/icons/CheckOutlined.js");
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @ant-design/icons */ "./node_modules/@ant-design/icons/es/icons/EditOutlined.js");
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
/* harmony import */ var _ant_design_pro_form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ant-design/pro-form */ "./node_modules/@ant-design/pro-form/es/components/Field/index.js");
/* harmony import */ var _ant_design_pro_form__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @ant-design/pro-form */ "./node_modules/@ant-design/pro-form/es/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/getFieldPropsOrFormItemProps/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/components/InlineErrorFormItem/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/genCopyable/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/components/LabelIconTip/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/useEditableMap/index.js");
/* harmony import */ var _ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @ant-design/pro-utils */ "./node_modules/@ant-design/pro-utils/es/components/ErrorBoundary/index.js");
/* harmony import */ var rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/utils/get */ "./node_modules/rc-util/es/utils/get.js");
/* harmony import */ var use_json_comparison__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! use-json-comparison */ "./node_modules/use-json-comparison/dist/index.esm.js");
/* harmony import */ var _ant_design_pro_skeleton__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @ant-design/pro-skeleton */ "./node_modules/@ant-design/pro-skeleton/es/index.js");
/* harmony import */ var _useFetchData__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./useFetchData */ "./node_modules/@ant-design/pro-descriptions/es/useFetchData.js");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./index.less */ "./node_modules/@ant-design/pro-descriptions/es/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_14__);














var _excluded = ["valueEnum", "render", "renderText", "mode", "plain", "dataIndex", "request", "params", "editable"],
    _excluded2 = ["request", "columns", "params", "dataSource", "onDataSourceChange", "formProps", "editable", "loading", "onLoadingChange", "actionRef", "onRequestError"];










/**
 * 根据 dataIndex 获取值，支持 dataIndex 为数组
 *
 * @param item
 * @param entity
 */

var getDataFromConfig = function getDataFromConfig(item, entity) {
  var dataIndex = item.dataIndex;

  if (dataIndex) {
    var data = Array.isArray(dataIndex) ? (0,rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_12__.default)(entity, dataIndex) : entity[dataIndex];

    if (data !== undefined || data !== null) {
      return data;
    }
  }

  return item.children;
};
/**
 * 这里会处理编辑的功能
 *
 * @param props
 */


var FieldRender = function FieldRender(props) {
  var valueEnum = props.valueEnum,
      action = props.action,
      index = props.index,
      text = props.text,
      entity = props.entity,
      mode = props.mode,
      render = props.render,
      editableUtils = props.editableUtils,
      valueType = props.valueType,
      plain = props.plain,
      dataIndex = props.dataIndex,
      request = props.request,
      renderFormItem = props.renderFormItem,
      params = props.params;
  var fieldConfig = {
    text: text,
    valueEnum: valueEnum,
    mode: mode || 'read',
    proFieldProps: {
      render: render ? function () {
        return render === null || render === void 0 ? void 0 : render(text, entity, index, action, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props), {}, {
          type: 'descriptions'
        }));
      } : undefined
    },
    ignoreFormItem: true,
    valueType: valueType,
    request: request,
    params: params,
    plain: plain
  };
  /** 如果是只读模式，fieldProps 的 form是空的，所以需要兜底处理 */

  if (mode === 'read' || !mode || valueType === 'option') {
    var fieldProps = (0,_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_15__.default)(props.fieldProps, undefined, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props), {}, {
      rowKey: dataIndex,
      isEditable: false
    }));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_form__WEBPACK_IMPORTED_MODULE_16__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({
      name: dataIndex
    }, fieldConfig, {
      fieldProps: fieldProps
    }));
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement("div", {
    style: {
      marginTop: -5,
      marginBottom: -5,
      marginLeft: 0,
      marginRight: 0
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_form__WEBPACK_IMPORTED_MODULE_17__.default.Item, {
    noStyle: true,
    shouldUpdate: function shouldUpdate(pre, next) {
      return pre !== next;
    }
  }, function (form) {
    var _editableUtils$action;

    var formItemProps = (0,_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_15__.default)(props.formItemProps, form, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props), {}, {
      rowKey: dataIndex,
      isEditable: true
    }));
    var fieldProps = (0,_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_15__.default)(props.fieldProps, form, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props), {}, {
      rowKey: dataIndex,
      isEditable: true
    }));
    var dom = renderFormItem ? renderFormItem === null || renderFormItem === void 0 ? void 0 : renderFormItem((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props), {}, {
      type: 'descriptions'
    }), {
      isEditable: true,
      recordKey: dataIndex,
      record: form.getFieldValue([dataIndex].flat(1)),
      defaultRender: function defaultRender() {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_form__WEBPACK_IMPORTED_MODULE_16__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({}, fieldConfig, {
          fieldProps: fieldProps
        }));
      },
      type: 'descriptions'
    }, form) : undefined;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_18__.default, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_19__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({
      name: dataIndex
    }, formItemProps, {
      style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({
        margin: 0
      }, (formItemProps === null || formItemProps === void 0 ? void 0 : formItemProps.style) || {}),
      initialValue: text || (formItemProps === null || formItemProps === void 0 ? void 0 : formItemProps.initialValue)
    }), dom || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_form__WEBPACK_IMPORTED_MODULE_16__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({}, fieldConfig, {
      // @ts-ignore
      proFieldProps: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, fieldConfig.proFieldProps),
      fieldProps: fieldProps
    }))), editableUtils === null || editableUtils === void 0 ? void 0 : (_editableUtils$action = editableUtils.actionRender) === null || _editableUtils$action === void 0 ? void 0 : _editableUtils$action.call(editableUtils, dataIndex || index, form, {
      cancelText: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_20__.default, null),
      saveText: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__.default, null),
      deleteText: false
    }));
  }));
};

var schemaToDescriptionsItem = function schemaToDescriptionsItem(items, entity, action, editableUtils) {
  var _items$map;

  var options = []; // 因为 Descriptions 只是个语法糖，children 是不会执行的，所以需要这里处理一下

  var children = items === null || items === void 0 ? void 0 : (_items$map = items.map) === null || _items$map === void 0 ? void 0 : _items$map.call(items, function (item, index) {
    var _getDataFromConfig, _restItem$label;

    if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.isValidElement(item)) {
      return item;
    }

    var valueEnum = item.valueEnum,
        render = item.render,
        renderText = item.renderText,
        mode = item.mode,
        plain = item.plain,
        dataIndex = item.dataIndex,
        request = item.request,
        params = item.params,
        editable = item.editable,
        restItem = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__.default)(item, _excluded);

    var defaultData = (_getDataFromConfig = getDataFromConfig(item, entity)) !== null && _getDataFromConfig !== void 0 ? _getDataFromConfig : restItem.children;
    var text = renderText ? renderText(defaultData, entity, index, action) : defaultData;
    var title = typeof restItem.title === 'function' ? restItem.title(item, 'descriptions', restItem.title) : restItem.title; //  dataIndex 无所谓是否存在
    // 有些时候不需要 dataIndex 可以直接 render

    var valueType = typeof restItem.valueType === 'function' ? restItem.valueType(entity || {}, 'descriptions') : restItem.valueType;
    var isEditable = editableUtils === null || editableUtils === void 0 ? void 0 : editableUtils.isEditable(dataIndex || index);
    var fieldMode = mode || isEditable ? 'edit' : 'read';
    var showEditIcon = editableUtils && fieldMode === 'read' && editable !== false && (editable === null || editable === void 0 ? void 0 : editable(text, entity, index)) !== false;
    var Component = showEditIcon ? antd_es_space__WEBPACK_IMPORTED_MODULE_18__.default : react__WEBPACK_IMPORTED_MODULE_10__.Fragment;
    var contentDom = fieldMode === 'edit' ? text : (0,_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_22__.genCopyable)(text, item, text);
    var field = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_descriptions__WEBPACK_IMPORTED_MODULE_23__.default.Item, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({}, restItem, {
      key: ((_restItem$label = restItem.label) === null || _restItem$label === void 0 ? void 0 : _restItem$label.toString()) || index,
      label: (title || restItem.label || restItem.tooltip || restItem.tip) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_24__.default, {
        label: title || restItem.label,
        tooltip: restItem.tooltip || restItem.tip,
        ellipsis: item.ellipsis
      })
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(Component, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(FieldRender, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({}, item, {
      dataIndex: item.dataIndex || index,
      mode: fieldMode,
      text: contentDom,
      valueType: valueType,
      entity: entity,
      index: index,
      action: action,
      editableUtils: editableUtils
    })), showEditIcon && valueType !== 'option' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_25__.default, {
      onClick: function onClick() {
        editableUtils === null || editableUtils === void 0 ? void 0 : editableUtils.startEditable(dataIndex || index);
      }
    }))); // 如果类型是 option 自动放到右上角

    if (valueType === 'option') {
      options.push(field);
      return null;
    }

    return field;
  }).filter(function (item) {
    return item;
  });
  return {
    // 空数组传递还是会被判定为有值
    options: (options === null || options === void 0 ? void 0 : options.length) ? options : null,
    children: children
  };
};

var ProDescriptionsItem = function ProDescriptionsItem(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_descriptions__WEBPACK_IMPORTED_MODULE_23__.default.Item, props, props.children);
};

var DefaultProDescriptionsDom = function DefaultProDescriptionsDom(dom) {
  return dom.children;
};

var ProDescriptions = function ProDescriptions(props) {
  var _props$editable;

  var request = props.request,
      columns = props.columns,
      _props$params = props.params,
      params = _props$params === void 0 ? {} : _props$params,
      dataSource = props.dataSource,
      onDataSourceChange = props.onDataSourceChange,
      formProps = props.formProps,
      editable = props.editable,
      loading = props.loading,
      onLoadingChange = props.onLoadingChange,
      actionRef = props.actionRef,
      onRequestError = props.onRequestError,
      rest = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__.default)(props, _excluded2);

  var context = (0,react__WEBPACK_IMPORTED_MODULE_10__.useContext)(antd_es_config_provider__WEBPACK_IMPORTED_MODULE_26__.default.ConfigContext);
  var action = (0,_useFetchData__WEBPACK_IMPORTED_MODULE_27__.default)( /*#__PURE__*/(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__.default)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee() {
    var data;
    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
            if (!request) {
              _context.next = 6;
              break;
            }

            _context.next = 3;
            return request(params);

          case 3:
            _context.t0 = _context.sent;
            _context.next = 7;
            break;

          case 6:
            _context.t0 = {
              data: {}
            };

          case 7:
            data = _context.t0;
            return _context.abrupt("return", data);

          case 9:
          case "end":
            return _context.stop();
        }
      }
    }, _callee);
  })), {
    onRequestError: onRequestError,
    effects: [(0,use_json_comparison__WEBPACK_IMPORTED_MODULE_13__.stringify)(params)],
    manual: !request,
    dataSource: dataSource,
    loading: loading,
    onLoadingChange: onLoadingChange,
    onDataSourceChange: onDataSourceChange
  });
  /*
   * 可编辑行的相关配置
   */

  var editableUtils = (0,_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_28__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, props.editable), {}, {
    childrenColumnName: undefined,
    dataSource: action.dataSource,
    setDataSource: action.setDataSource
  }));
  /** 支持 reload 的功能 */

  (0,react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {
    if (actionRef) {
      actionRef.current = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({
        reload: action.reload
      }, editableUtils);
    }
  }, [action, actionRef, editableUtils]); // loading 时展示
  // loading =  undefined 但是 request 存在时也应该展示

  if (action.loading || action.loading === undefined && request) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_skeleton__WEBPACK_IMPORTED_MODULE_29__.default, {
      type: "descriptions",
      list: false,
      pageHeader: false
    });
  }

  var getColumns = function getColumns() {
    // 因为 Descriptions 只是个语法糖，children 是不会执行的，所以需要这里处理一下
    var childrenColumns = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_11__.default)(props.children).filter(Boolean).map(function (item) {
      if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.isValidElement(item)) {
        return item;
      }

      var _item$props = item === null || item === void 0 ? void 0 : item.props,
          valueEnum = _item$props.valueEnum,
          valueType = _item$props.valueType,
          dataIndex = _item$props.dataIndex,
          itemRequest = _item$props.request;

      if (!valueType && !valueEnum && !dataIndex && !itemRequest) {
        return item;
      }

      return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__.default)({}, item === null || item === void 0 ? void 0 : item.props), {}, {
        entity: dataSource
      });
    });
    return [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(columns || []), (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(childrenColumns)).filter(function (item) {
      if (!item) return false;

      if ((item === null || item === void 0 ? void 0 : item.valueType) && ['index', 'indexBorder'].includes(item === null || item === void 0 ? void 0 : item.valueType)) {
        return false;
      }

      return !(item === null || item === void 0 ? void 0 : item.hideInDescriptions);
    }).sort(function (a, b) {
      if (b.order || a.order) {
        return (b.order || 0) - (a.order || 0);
      }

      return (b.index || 0) - (a.index || 0);
    });
  };

  var _schemaToDescriptions = schemaToDescriptionsItem(getColumns(), action.dataSource || {}, (actionRef === null || actionRef === void 0 ? void 0 : actionRef.current) || action, editable ? editableUtils : undefined),
      options = _schemaToDescriptions.options,
      children = _schemaToDescriptions.children;
  /** 如果不是可编辑模式，没必要注入 ProForm */


  var FormComponent = editable ? _ant_design_pro_form__WEBPACK_IMPORTED_MODULE_30__.default : DefaultProDescriptionsDom;
  /** 即使组件返回null了, 在传递的过程中还是会被Description检测到为有值 */

  var title = null;

  if (rest.title || rest.tooltip || rest.tip) {
    title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_24__.default, {
      label: rest.title,
      tooltip: rest.tooltip || rest.tip
    });
  }

  var className = context.getPrefixCls('pro-descriptions');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_ant_design_pro_utils__WEBPACK_IMPORTED_MODULE_31__.default, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(FormComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({
    key: "form",
    form: (_props$editable = props.editable) === null || _props$editable === void 0 ? void 0 : _props$editable.form,
    component: false,
    submitter: false
  }, formProps, {
    onFinish: undefined
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_descriptions__WEBPACK_IMPORTED_MODULE_23__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__.default)({
    className: className
  }, rest, {
    extra: rest.extra ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_18__.default, null, options, rest.extra) : options,
    title: title
  }), children)));
};

ProDescriptions.Item = ProDescriptionsItem;
/* harmony default export */ __webpack_exports__["default"] = (ProDescriptions);

/***/ }),

/***/ "./node_modules/@ant-design/pro-descriptions/es/useFetchData.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@ant-design/pro-descriptions/es/useFetchData.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");







var useFetchData = function useFetchData(getData, options) {
  var _ref = options || {},
      onRequestError = _ref.onRequestError,
      effects = _ref.effects,
      manual = _ref.manual,
      dataSource = _ref.dataSource,
      defaultDataSource = _ref.defaultDataSource,
      onDataSourceChange = _ref.onDataSourceChange;

  var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_5__.default)(defaultDataSource, {
    value: dataSource,
    onChange: onDataSourceChange
  }),
      _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__.default)(_useMergedState, 2),
      entity = _useMergedState2[0],
      setEntity = _useMergedState2[1];

  var _useMergedState3 = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_5__.default)(options === null || options === void 0 ? void 0 : options.loading, {
    value: options === null || options === void 0 ? void 0 : options.loading,
    onChange: options === null || options === void 0 ? void 0 : options.onLoadingChange
  }),
      _useMergedState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__.default)(_useMergedState3, 2),
      loading = _useMergedState4[0],
      setLoading = _useMergedState4[1];

  var updateDataAndLoading = function updateDataAndLoading(data) {
    setEntity(data);
    setLoading(false);
  };
  /** 请求数据 */


  var fetchList = /*#__PURE__*/function () {
    var _ref2 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__.default)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee() {
      var _ref3, data, success;

      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (!loading) {
                _context.next = 2;
                break;
              }

              return _context.abrupt("return");

            case 2:
              setLoading(true);
              _context.prev = 3;
              _context.next = 6;
              return getData();

            case 6:
              _context.t0 = _context.sent;

              if (_context.t0) {
                _context.next = 9;
                break;
              }

              _context.t0 = {};

            case 9:
              _ref3 = _context.t0;
              data = _ref3.data;
              success = _ref3.success;

              if (success !== false) {
                updateDataAndLoading(data);
              }

              _context.next = 23;
              break;

            case 15:
              _context.prev = 15;
              _context.t1 = _context["catch"](3);

              if (!(onRequestError === undefined)) {
                _context.next = 21;
                break;
              }

              throw new Error(_context.t1);

            case 21:
              onRequestError(_context.t1);

            case 22:
              setLoading(false);

            case 23:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, null, [[3, 15]]);
    }));

    return function fetchList() {
      return _ref2.apply(this, arguments);
    };
  }();

  (0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
    if (manual) {
      return;
    }

    fetchList(); // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(effects || []), [manual]));
  return {
    dataSource: entity,
    setDataSource: setEntity,
    loading: loading,
    reload: function reload() {
      return fetchList();
    }
  };
};

/* harmony default export */ __webpack_exports__["default"] = (useFetchData);

/***/ }),

/***/ "./node_modules/@ant-design/pro-skeleton/es/component/Descriptions/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@ant-design/pro-skeleton/es/component/Descriptions/index.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableItemSkeleton": function() { return /* binding */ TableItemSkeleton; },
/* harmony export */   "TableSkeleton": function() { return /* binding */ TableSkeleton; },
/* harmony export */   "DescriptionsSkeleton": function() { return /* binding */ DescriptionsSkeleton; }
/* harmony export */ });
/* harmony import */ var antd_es_card_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/card/style */ "./node_modules/antd/es/card/style/index.js");
/* harmony import */ var antd_es_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/card */ "./node_modules/antd/es/card/index.js");
/* harmony import */ var antd_es_skeleton_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/skeleton/style */ "./node_modules/antd/es/skeleton/style/index.js");
/* harmony import */ var antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/skeleton */ "./node_modules/antd/es/skeleton/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var use_media_antd_query__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! use-media-antd-query */ "./node_modules/use-media-antd-query/es/index.js");
/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../List */ "./node_modules/@ant-design/pro-skeleton/es/component/List/index.js");







var MediaQueryKeyEnum = {
  xs: 1,
  sm: 2,
  md: 3,
  lg: 3,
  xl: 3,
  xxl: 4
};

var DescriptionsLargeItemSkeleton = function DescriptionsLargeItemSkeleton(_ref) {
  var active = _ref.active;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      marginTop: 32
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 100,
      marginBottom: 16
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      width: '100%',
      justifyContent: 'space-between',
      display: 'flex'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      flex: 1,
      marginRight: 24,
      maxWidth: 300
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        marginTop: 0
      }
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        marginTop: 8
      }
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        marginTop: 8
      }
    }
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      flex: 1,
      alignItems: 'center',
      justifyContent: 'center'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      maxWidth: 300,
      margin: 'auto'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        marginTop: 0
      }
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        marginTop: 8
      }
    }
  })))));
};

var DescriptionsItemSkeleton = function DescriptionsItemSkeleton(_ref2) {
  var size = _ref2.size,
      active = _ref2.active;
  var colSize = (0,use_media_antd_query__WEBPACK_IMPORTED_MODULE_3__.default)();
  var arraySize = size === undefined ? MediaQueryKeyEnum[colSize] || 3 : size;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      width: '100%',
      justifyContent: 'space-between',
      display: 'flex'
    }
  }, new Array(arraySize).fill(null).map(function (_, index) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      // eslint-disable-next-line react/no-array-index-key
      key: index,
      style: {
        flex: 1,
        paddingLeft: index === 0 ? 0 : 24,
        paddingRight: index === arraySize - 1 ? 0 : 24
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
      active: active,
      paragraph: false,
      title: {
        style: {
          marginTop: 0
        }
      }
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
      active: active,
      paragraph: false,
      title: {
        style: {
          marginTop: 8
        }
      }
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
      active: active,
      paragraph: false,
      title: {
        style: {
          marginTop: 8
        }
      }
    }));
  }));
};
/**
 * Table 的子项目骨架屏
 *
 * @param param0
 */


var TableItemSkeleton = function TableItemSkeleton(_ref3) {
  var active = _ref3.active,
      _ref3$header = _ref3.header,
      header = _ref3$header === void 0 ? false : _ref3$header;
  var colSize = (0,use_media_antd_query__WEBPACK_IMPORTED_MODULE_3__.default)();
  var arraySize = MediaQueryKeyEnum[colSize] || 3;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      display: 'flex',
      background: header ? 'rgba(0,0,0,0.02)' : 'none',
      padding: '24px 8px'
    }
  }, new Array(arraySize).fill(null).map(function (_, index) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      // eslint-disable-next-line react/no-array-index-key
      key: index,
      style: {
        flex: 1,
        paddingLeft: header && index === 0 ? 0 : 20,
        paddingRight: 32
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
      active: active,
      paragraph: false,
      title: {
        style: {
          margin: 0,
          height: 24,
          width: header ? '75px' : '100%'
        }
      }
    }));
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      flex: 3,
      paddingLeft: 32
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        margin: 0,
        height: 24,
        width: header ? '75px' : '100%'
      }
    }
  }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List__WEBPACK_IMPORTED_MODULE_5__.Line, {
    padding: "0px 0px"
  }));
};
/**
 * Table 骨架屏
 *
 * @param param0
 */

var TableSkeleton = function TableSkeleton(_ref4) {
  var active = _ref4.active,
      _ref4$size = _ref4.size,
      size = _ref4$size === void 0 ? 4 : _ref4$size;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_6__.default, {
    bordered: false
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 100,
      marginBottom: 16
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TableItemSkeleton, {
    header: true,
    active: active
  }), new Array(size).fill(null).map(function (_, index) {
    return (
      /*#__PURE__*/
      // eslint-disable-next-line react/no-array-index-key
      react__WEBPACK_IMPORTED_MODULE_2__.createElement(TableItemSkeleton, {
        key: index,
        active: active
      })
    );
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      display: 'flex',
      justifyContent: 'flex-end',
      paddingTop: 16
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default, {
    active: active,
    paragraph: false,
    title: {
      style: {
        margin: 0,
        height: 32,
        float: 'right',
        maxWidth: '630px'
      }
    }
  })));
};
var DescriptionsSkeleton = function DescriptionsSkeleton(_ref5) {
  var active = _ref5.active;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_6__.default, {
    bordered: false,
    style: {
      borderTopRightRadius: 0,
      borderTopLeftRadius: 0
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_4__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 100,
      marginBottom: 16
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(DescriptionsItemSkeleton, {
    active: active
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(DescriptionsLargeItemSkeleton, {
    active: active
  }));
};

var DescriptionsPageSkeleton = function DescriptionsPageSkeleton(_ref6) {
  var _ref6$active = _ref6.active,
      active = _ref6$active === void 0 ? true : _ref6$active,
      pageHeader = _ref6.pageHeader,
      list = _ref6.list;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
    style: {
      width: '100%'
    }
  }, pageHeader !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List__WEBPACK_IMPORTED_MODULE_5__.PageHeaderSkeleton, {
    active: active
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(DescriptionsSkeleton, {
    active: active
  }), list !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List__WEBPACK_IMPORTED_MODULE_5__.Line, null), list !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TableSkeleton, {
    active: active,
    size: list
  }));
};

/* harmony default export */ __webpack_exports__["default"] = (DescriptionsPageSkeleton);

/***/ }),

/***/ "./node_modules/@ant-design/pro-skeleton/es/component/List/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@ant-design/pro-skeleton/es/component/List/index.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Line": function() { return /* binding */ Line; },
/* harmony export */   "MediaQueryKeyEnum": function() { return /* binding */ MediaQueryKeyEnum; },
/* harmony export */   "ListSkeletonItem": function() { return /* binding */ ListSkeletonItem; },
/* harmony export */   "ListSkeleton": function() { return /* binding */ ListSkeleton; },
/* harmony export */   "PageHeaderSkeleton": function() { return /* binding */ PageHeaderSkeleton; },
/* harmony export */   "ListToolbarSkeleton": function() { return /* binding */ ListToolbarSkeleton; }
/* harmony export */ });
/* harmony import */ var antd_es_space_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/space/style */ "./node_modules/antd/es/space/style/index.js");
/* harmony import */ var antd_es_space__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/space */ "./node_modules/antd/es/space/index.js");
/* harmony import */ var antd_es_card_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/card/style */ "./node_modules/antd/es/card/style/index.js");
/* harmony import */ var antd_es_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/card */ "./node_modules/antd/es/card/index.js");
/* harmony import */ var antd_es_skeleton_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/skeleton/style */ "./node_modules/antd/es/skeleton/style/index.js");
/* harmony import */ var antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/skeleton */ "./node_modules/antd/es/skeleton/index.js");
/* harmony import */ var antd_es_divider_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/divider/style */ "./node_modules/antd/es/divider/style/index.js");
/* harmony import */ var antd_es_divider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/divider */ "./node_modules/antd/es/divider/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var use_media_antd_query__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! use-media-antd-query */ "./node_modules/use-media-antd-query/es/index.js");











/** 一条分割线 */
var Line = function Line(_ref) {
  var padding = _ref.padding;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      padding: padding || '0 24px'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_divider__WEBPACK_IMPORTED_MODULE_6__.default, {
    style: {
      margin: 0
    }
  }));
};
var MediaQueryKeyEnum = {
  xs: 2,
  sm: 2,
  md: 4,
  lg: 4,
  xl: 6,
  xxl: 6
};

var StatisticSkeleton = function StatisticSkeleton(_ref2) {
  var size = _ref2.size,
      active = _ref2.active;
  var colSize = (0,use_media_antd_query__WEBPACK_IMPORTED_MODULE_5__.default)();
  var arraySize = size === undefined ? MediaQueryKeyEnum[colSize] || 6 : size;

  var firstWidth = function firstWidth(index) {
    if (index === 0) {
      return 0;
    }

    if (arraySize > 2) {
      return 42;
    }

    return 16;
  };

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false,
    style: {
      marginBottom: 16
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      width: '100%',
      justifyContent: 'space-between',
      display: 'flex'
    }
  }, new Array(arraySize).fill(null).map(function (_, index) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
      // eslint-disable-next-line react/no-array-index-key
      key: index,
      style: {
        borderLeft: arraySize > 2 && index === 1 ? '1px solid rgba(0,0,0,0.06)' : undefined,
        paddingLeft: firstWidth(index),
        flex: 1,
        marginRight: index === 0 ? 16 : 0
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default, {
      active: active,
      paragraph: false,
      title: {
        width: 100,
        style: {
          marginTop: 0
        }
      }
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
      active: active,
      style: {
        height: 48
      }
    }));
  })));
};
/** 列表子项目骨架屏 */


var ListSkeletonItem = function ListSkeletonItem(_ref3) {
  var active = _ref3.active;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false // eslint-disable-next-line react/no-array-index-key
    ,
    style: {
      borderRadius: 0
    },
    bodyStyle: {
      padding: 24
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      width: '100%',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      maxWidth: '100%',
      flex: 1
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default, {
    active: active,
    title: {
      width: 100,
      style: {
        marginTop: 0
      }
    },
    paragraph: {
      rows: 1,
      style: {
        margin: 0
      }
    }
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 165,
      marginTop: 12
    }
  }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(Line, null));
};
/** 列表骨架屏 */

var ListSkeleton = function ListSkeleton(_ref4) {
  var size = _ref4.size,
      _ref4$active = _ref4.active,
      active = _ref4$active === void 0 ? true : _ref4$active,
      actionButton = _ref4.actionButton;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false,
    bodyStyle: {
      padding: 0
    }
  }, new Array(size).fill(null).map(function (_, index) {
    return (
      /*#__PURE__*/
      // eslint-disable-next-line react/no-array-index-key
      react__WEBPACK_IMPORTED_MODULE_4__.createElement(ListSkeletonItem, {
        key: index,
        active: !!active
      })
    );
  }), actionButton !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false,
    style: {
      borderTopRightRadius: 0,
      borderTopLeftRadius: 0
    },
    bodyStyle: {
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    style: {
      width: 102
    },
    active: active,
    size: "small"
  })));
};
/**
 * 面包屑的 骨架屏
 *
 * @param param0
 */

var PageHeaderSkeleton = function PageHeaderSkeleton(_ref5) {
  var active = _ref5.active;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      marginBottom: 16
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default, {
    paragraph: false,
    title: {
      width: 185
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    active: active,
    size: "small"
  }));
};
/**
 * 列表操作栏的骨架屏
 *
 * @param param0
 */

var ListToolbarSkeleton = function ListToolbarSkeleton(_ref6) {
  var active = _ref6.active;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false,
    style: {
      borderBottomRightRadius: 0,
      borderBottomLeftRadius: 0
    },
    bodyStyle: {
      paddingBottom: 8
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_9__.default, {
    style: {
      width: '100%',
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    active: active,
    style: {
      width: 200
    },
    size: "small"
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_9__.default, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 120
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_8__.default.Button, {
    active: active,
    size: "small",
    style: {
      width: 80
    }
  }))));
};

var ListPageSkeleton = function ListPageSkeleton(_ref7) {
  var _ref7$active = _ref7.active,
      active = _ref7$active === void 0 ? true : _ref7$active,
      statistic = _ref7.statistic,
      actionButton = _ref7.actionButton,
      toolbar = _ref7.toolbar,
      pageHeader = _ref7.pageHeader,
      _ref7$list = _ref7.list,
      list = _ref7$list === void 0 ? 5 : _ref7$list;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", {
    style: {
      width: '100%'
    }
  }, pageHeader !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(PageHeaderSkeleton, {
    active: active
  }), statistic !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(StatisticSkeleton, {
    size: statistic,
    active: active
  }), (toolbar !== false || list !== false) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_7__.default, {
    bordered: false,
    bodyStyle: {
      padding: 0
    }
  }, toolbar !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(ListToolbarSkeleton, {
    active: active
  }), list !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(ListSkeleton, {
    size: list,
    active: active,
    actionButton: actionButton
  })));
};

/* harmony default export */ __webpack_exports__["default"] = (ListPageSkeleton);

/***/ }),

/***/ "./node_modules/@ant-design/pro-skeleton/es/component/Result/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@ant-design/pro-skeleton/es/component/Result/index.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var antd_es_card_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/card/style */ "./node_modules/antd/es/card/style/index.js");
/* harmony import */ var antd_es_card__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/card */ "./node_modules/antd/es/card/index.js");
/* harmony import */ var antd_es_space_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/space/style */ "./node_modules/antd/es/space/style/index.js");
/* harmony import */ var antd_es_space__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/space */ "./node_modules/antd/es/space/index.js");
/* harmony import */ var antd_es_skeleton_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/skeleton/style */ "./node_modules/antd/es/skeleton/style/index.js");
/* harmony import */ var antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/skeleton */ "./node_modules/antd/es/skeleton/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../List */ "./node_modules/@ant-design/pro-skeleton/es/component/List/index.js");









var ResultPageSkeleton = function ResultPageSkeleton(_ref) {
  var _ref$active = _ref.active,
      active = _ref$active === void 0 ? true : _ref$active,
      pageHeader = _ref.pageHeader;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", {
    style: {
      width: '100%'
    }
  }, pageHeader !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_List__WEBPACK_IMPORTED_MODULE_4__.PageHeaderSkeleton, {
    active: active
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_card__WEBPACK_IMPORTED_MODULE_5__.default, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", {
    style: {
      display: 'flex',
      justifyContent: 'center',
      alignItems: 'center',
      flexDirection: 'column',
      padding: 128
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__.default.Avatar, {
    size: 64,
    style: {
      marginBottom: 32
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__.default.Button, {
    active: active,
    style: {
      width: 214,
      marginBottom: 8
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__.default.Button, {
    active: active,
    style: {
      width: 328
    },
    size: "small"
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_7__.default, {
    style: {
      marginTop: 24
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__.default.Button, {
    active: active,
    style: {
      width: 116
    }
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(antd_es_skeleton__WEBPACK_IMPORTED_MODULE_6__.default.Button, {
    active: active,
    style: {
      width: 116
    }
  })))));
};

/* harmony default export */ __webpack_exports__["default"] = (ResultPageSkeleton);

/***/ }),

/***/ "./node_modules/@ant-design/pro-skeleton/es/index.js":
/*!***********************************************************!*\
  !*** ./node_modules/@ant-design/pro-skeleton/es/index.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ListPageSkeleton": function() { return /* reexport safe */ _component_List__WEBPACK_IMPORTED_MODULE_4__.default; },
/* harmony export */   "ListSkeleton": function() { return /* reexport safe */ _component_List__WEBPACK_IMPORTED_MODULE_4__.ListSkeleton; },
/* harmony export */   "ListSkeletonItem": function() { return /* reexport safe */ _component_List__WEBPACK_IMPORTED_MODULE_4__.ListSkeletonItem; },
/* harmony export */   "PageHeaderSkeleton": function() { return /* reexport safe */ _component_List__WEBPACK_IMPORTED_MODULE_4__.PageHeaderSkeleton; },
/* harmony export */   "ListToolbarSkeleton": function() { return /* reexport safe */ _component_List__WEBPACK_IMPORTED_MODULE_4__.ListToolbarSkeleton; },
/* harmony export */   "DescriptionsSkeleton": function() { return /* reexport safe */ _component_Descriptions__WEBPACK_IMPORTED_MODULE_3__.DescriptionsSkeleton; },
/* harmony export */   "TableSkeleton": function() { return /* reexport safe */ _component_Descriptions__WEBPACK_IMPORTED_MODULE_3__.TableSkeleton; },
/* harmony export */   "TableItemSkeleton": function() { return /* reexport safe */ _component_Descriptions__WEBPACK_IMPORTED_MODULE_3__.TableItemSkeleton; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _component_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./component/List */ "./node_modules/@ant-design/pro-skeleton/es/component/List/index.js");
/* harmony import */ var _component_Result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./component/Result */ "./node_modules/@ant-design/pro-skeleton/es/component/Result/index.js");
/* harmony import */ var _component_Descriptions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./component/Descriptions */ "./node_modules/@ant-design/pro-skeleton/es/component/Descriptions/index.js");

var _excluded = ["type"];





var PageSkeleton = function PageSkeleton(_ref) {
  var _ref$type = _ref.type,
      type = _ref$type === void 0 ? 'list' : _ref$type,
      rest = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__.default)(_ref, _excluded);

  if (type === 'result') {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_component_Result__WEBPACK_IMPORTED_MODULE_2__.default, rest);
  }

  if (type === 'descriptions') {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_component_Descriptions__WEBPACK_IMPORTED_MODULE_3__.default, rest);
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_component_List__WEBPACK_IMPORTED_MODULE_4__.default, rest);
};


/* harmony default export */ __webpack_exports__["default"] = (PageSkeleton);

/***/ }),

/***/ "./node_modules/@ant-design/pro-utils/es/useEditableMap/index.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@ant-design/pro-utils/es/useEditableMap/index.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/message/style */ "./node_modules/antd/es/message/style/index.js");
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/message */ "./node_modules/antd/es/message/index.js");
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");
/* harmony import */ var _ant_design_pro_provider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/pro-provider */ "./node_modules/@ant-design/pro-provider/es/index.js");
/* harmony import */ var _useEditableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../useEditableArray */ "./node_modules/@ant-design/pro-utils/es/useEditableArray/index.js");










/**
 * 使用map 来删除数据，性能一般 但是准确率比较高
 *
 * @param params
 * @param action
 */

function editableRowByKey(_ref) {
  var data = _ref.data,
      row = _ref.row;
  return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__.default)({}, data), row);
}
/**
 * 一个方便的hooks 用于维护编辑的状态
 *
 * @param props
 */


function useEditableMap(props) {
  var editableType = props.type || 'single';

  var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_6__.default)([], {
    value: props.editableKeys,
    onChange: props.onChange ? function (keys) {
      var _props$onChange;

      props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, // 计算编辑的key
      keys, props.dataSource);
    } : undefined
  }),
      _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__.default)(_useMergedState, 2),
      editableKeys = _useMergedState2[0],
      setEditableRowKeys = _useMergedState2[1];
  /** 一个用来标志的set 提供了方便的 api 来去重什么的 */


  var editableKeysSet = (0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function () {
    var keys = editableType === 'single' ? editableKeys === null || editableKeys === void 0 ? void 0 : editableKeys.slice(0, 1) : editableKeys;
    return new Set(keys);
  }, [(editableKeys || []).join(','), editableType]);
  /** 这行是不是编辑状态 */

  var isEditable = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function (recordKey) {
    if (editableKeys === null || editableKeys === void 0 ? void 0 : editableKeys.includes((0,_useEditableArray__WEBPACK_IMPORTED_MODULE_8__.recordKeyToString)(recordKey))) return true;
    return false;
  }, [(editableKeys || []).join(',')]);
  /**
   * 进入编辑状态
   *
   * @param recordKey
   */

  var startEditable = function startEditable(recordKey) {
    // 如果是单行的话，不允许多行编辑
    if (editableKeysSet.size > 0 && editableType === 'single') {
      antd_es_message__WEBPACK_IMPORTED_MODULE_9__.default.warn(props.onlyOneLineEditorAlertMessage || '只能同时编辑一行');

      return false;
    }

    editableKeysSet.add((0,_useEditableArray__WEBPACK_IMPORTED_MODULE_8__.recordKeyToString)(recordKey));
    setEditableRowKeys(Array.from(editableKeysSet));
    return true;
  };
  /**
   * 退出编辑状态
   *
   * @param recordKey
   */


  var cancelEditable = function cancelEditable(recordKey) {
    // 防止多次渲染
    editableKeysSet.delete((0,_useEditableArray__WEBPACK_IMPORTED_MODULE_8__.recordKeyToString)(recordKey));
    setEditableRowKeys(Array.from(editableKeysSet));
    return true;
  };

  var onCancel = /*#__PURE__*/function () {
    var _ref2 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__.default)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(recordKey, editRow, originRow, newLine) {
      var _props$onCancel;

      var success;
      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return props === null || props === void 0 ? void 0 : (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, recordKey, editRow, originRow, newLine);

            case 2:
              success = _context.sent;

              if (!(success === false)) {
                _context.next = 5;
                break;
              }

              return _context.abrupt("return", false);

            case 5:
              return _context.abrupt("return", true);

            case 6:
            case "end":
              return _context.stop();
          }
        }
      }, _callee);
    }));

    return function onCancel(_x, _x2, _x3, _x4) {
      return _ref2.apply(this, arguments);
    };
  }();

  var onSave = /*#__PURE__*/function () {
    var _ref3 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__.default)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(recordKey, editRow, originRow) {
      var _props$onSave;

      var success, actionProps;
      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return props === null || props === void 0 ? void 0 : (_props$onSave = props.onSave) === null || _props$onSave === void 0 ? void 0 : _props$onSave.call(props, recordKey, editRow, originRow);

            case 2:
              success = _context2.sent;

              if (!(success === false)) {
                _context2.next = 5;
                break;
              }

              return _context2.abrupt("return", false);

            case 5:
              cancelEditable(recordKey);
              actionProps = {
                data: props.dataSource,
                row: editRow,
                key: recordKey,
                childrenColumnName: props.childrenColumnName || 'children'
              };
              props.setDataSource(editableRowByKey(actionProps));
              return _context2.abrupt("return", true);

            case 9:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2);
    }));

    return function onSave(_x5, _x6, _x7) {
      return _ref3.apply(this, arguments);
    };
  }(); // Internationalization


  var intl = (0,_ant_design_pro_provider__WEBPACK_IMPORTED_MODULE_7__.useIntl)();
  var saveText = intl.getMessage('editableTable.action.save', '保存');
  var deleteText = intl.getMessage('editableTable.action.delete', '删除');
  var cancelText = intl.getMessage('editableTable.action.cancel', '取消');
  var actionRender = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function (key, form, config) {
    var renderConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__.default)({
      recordKey: key,
      cancelEditable: cancelEditable,
      onCancel: onCancel,
      onSave: onSave,
      editableKeys: editableKeys,
      setEditableRowKeys: setEditableRowKeys,
      form: form,
      saveText: saveText,
      cancelText: cancelText,
      deleteText: deleteText,
      deletePopconfirmMessage: '删除此行？',
      editorType: 'Map'
    }, config);

    var defaultDoms = (0,_useEditableArray__WEBPACK_IMPORTED_MODULE_8__.defaultActionRender)(props.dataSource, renderConfig);

    if (props.actionRender) {
      return props.actionRender(props.dataSource, renderConfig, {
        save: defaultDoms[0],
        delete: defaultDoms[1],
        cancel: defaultDoms[2]
      });
    }

    return defaultDoms;
  }, [editableKeys && editableKeys.join(','), props.dataSource]);
  return {
    editableKeys: editableKeys,
    setEditableRowKeys: setEditableRowKeys,
    isEditable: isEditable,
    actionRender: actionRender,
    startEditable: startEditable,
    cancelEditable: cancelEditable
  };
}

/* harmony default export */ __webpack_exports__["default"] = (useEditableMap);

/***/ }),

/***/ "./node_modules/@ant-design/pro-descriptions/es/index.less":
/*!*****************************************************************!*\
  !*** ./node_modules/@ant-design/pro-descriptions/es/index.less ***!
  \*****************************************************************/
/***/ (function() {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ }),

/***/ "./node_modules/antd/es/descriptions/style/index.less":
/*!************************************************************!*\
  !*** ./node_modules/antd/es/descriptions/style/index.less ***!
  \************************************************************/
/***/ (function() {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ }),

/***/ "./node_modules/antd/es/skeleton/style/index.less":
/*!********************************************************!*\
  !*** ./node_modules/antd/es/skeleton/style/index.less ***!
  \********************************************************/
/***/ (function() {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ }),

/***/ "./node_modules/antd/es/descriptions/style/index.js":
/*!**********************************************************!*\
  !*** ./node_modules/antd/es/descriptions/style/index.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_default_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/default.less */ "./node_modules/antd/es/style/default.less");
/* harmony import */ var _style_default_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_default_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./node_modules/antd/es/descriptions/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);



/***/ }),

/***/ "./node_modules/antd/es/popconfirm/index.js":
/*!**************************************************!*\
  !*** ./node_modules/antd/es/popconfirm/index.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");
/* harmony import */ var _ant_design_icons_es_icons_ExclamationCircleFilled__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ant-design/icons/es/icons/ExclamationCircleFilled */ "./node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js");
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../tooltip */ "./node_modules/antd/es/tooltip/index.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button */ "./node_modules/antd/es/button/index.js");
/* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../button/button */ "./node_modules/antd/es/button/button.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/antd/es/locale-provider/LocaleReceiver.js");
/* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../locale/default */ "./node_modules/antd/es/locale/default.js");
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/es/config-provider/context.js");
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/getRenderPropValue */ "./node_modules/antd/es/_util/getRenderPropValue.js");
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/es/_util/reactNode.js");
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ "./node_modules/antd/es/_util/motion.js");
/* harmony import */ var _util_ActionButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/ActionButton */ "./node_modules/antd/es/_util/ActionButton.js");
/* harmony import */ var _util_hooks_useDestroyed__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/hooks/useDestroyed */ "./node_modules/antd/es/_util/hooks/useDestroyed.js");



var _this = undefined;

var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};

  for (var p in s) {
    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  }

  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};

















var Popconfirm = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function (props, ref) {
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_6__.ConfigContext),
      getPrefixCls = _React$useContext.getPrefixCls;

  var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_4__.default)(false, {
    value: props.visible,
    defaultValue: props.defaultVisible
  }),
      _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__.default)(_useMergedState, 2),
      visible = _useMergedState2[0],
      setVisible = _useMergedState2[1];

  var isDestroyed = (0,_util_hooks_useDestroyed__WEBPACK_IMPORTED_MODULE_7__.default)();

  var settingVisible = function settingVisible(value, e) {
    var _a;

    if (!isDestroyed()) {
      setVisible(value);
    }

    (_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, value, e);
  };

  var close = function close(e) {
    settingVisible(false, e);
  };

  var onConfirm = function onConfirm(e) {
    var _a;

    return (_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(_this, e);
  };

  var onCancel = function onCancel(e) {
    var _a;

    settingVisible(false, e);
    (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(_this, e);
  };

  var _onKeyDown = function onKeyDown(e) {
    if (e.keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__.default.ESC && visible) {
      settingVisible(false, e);
    }
  };

  var onVisibleChange = function onVisibleChange(value) {
    var disabled = props.disabled;

    if (disabled) {
      return;
    }

    settingVisible(value);
  };

  var renderOverlay = function renderOverlay(prefixCls, popconfirmLocale) {
    var okButtonProps = props.okButtonProps,
        cancelButtonProps = props.cancelButtonProps,
        title = props.title,
        cancelText = props.cancelText,
        okText = props.okText,
        okType = props.okType,
        icon = props.icon,
        _props$showCancel = props.showCancel,
        showCancel = _props$showCancel === void 0 ? true : _props$showCancel;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      className: "".concat(prefixCls, "-inner-content")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      className: "".concat(prefixCls, "-message")
    }, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      className: "".concat(prefixCls, "-message-title")
    }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_8__.getRenderPropValue)(title))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
      className: "".concat(prefixCls, "-buttons")
    }, showCancel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_button__WEBPACK_IMPORTED_MODULE_9__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({
      onClick: onCancel,
      size: "small"
    }, cancelButtonProps), cancelText || popconfirmLocale.cancelText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_util_ActionButton__WEBPACK_IMPORTED_MODULE_10__.default, {
      buttonProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({
        size: 'small'
      }, (0,_button_button__WEBPACK_IMPORTED_MODULE_11__.convertLegacyProps)(okType)), okButtonProps),
      actionFn: onConfirm,
      close: close,
      prefixCls: getPrefixCls('btn'),
      quitOnNullishReturnValue: true,
      emitEvent: true
    }, okText || popconfirmLocale.okText)));
  };

  var customizePrefixCls = props.prefixCls,
      placement = props.placement,
      children = props.children,
      overlayClassName = props.overlayClassName,
      restProps = __rest(props, ["prefixCls", "placement", "children", "overlayClassName"]);

  var prefixCls = getPrefixCls('popover', customizePrefixCls);
  var prefixClsConfirm = getPrefixCls('popconfirm', customizePrefixCls);
  var overlayClassNames = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixClsConfirm, overlayClassName);
  var overlay = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_12__.default, {
    componentName: "Popconfirm",
    defaultLocale: _locale_default__WEBPACK_IMPORTED_MODULE_13__.default.Popconfirm
  }, function (popconfirmLocale) {
    return renderOverlay(prefixCls, popconfirmLocale);
  });
  var rootPrefixCls = getPrefixCls();
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_14__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, restProps, {
    prefixCls: prefixCls,
    placement: placement,
    onVisibleChange: onVisibleChange,
    visible: visible,
    overlay: overlay,
    overlayClassName: overlayClassNames,
    ref: ref,
    transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__.getTransitionName)(rootPrefixCls, 'zoom-big', props.transitionName)
  }), (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_16__.cloneElement)(children, {
    onKeyDown: function onKeyDown(e) {
      var _a, _b;

      if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(children)) {
        (_b = children === null || children === void 0 ? void 0 : (_a = children.props).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e);
      }

      _onKeyDown(e);
    }
  }));
});
Popconfirm.defaultProps = {
  placement: 'top',
  trigger: 'click',
  okType: 'primary',
  icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ant_design_icons_es_icons_ExclamationCircleFilled__WEBPACK_IMPORTED_MODULE_17__.default, null),
  disabled: false
};
/* harmony default export */ __webpack_exports__["default"] = (Popconfirm);

/***/ }),

/***/ "./node_modules/antd/es/skeleton/style/index.js":
/*!******************************************************!*\
  !*** ./node_modules/antd/es/skeleton/style/index.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_default_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/default.less */ "./node_modules/antd/es/style/default.less");
/* harmony import */ var _style_default_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_default_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./node_modules/antd/es/skeleton/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);



/***/ }),

/***/ "./node_modules/antd/es/table/hooks/useLazyKVMap.js":
/*!**********************************************************!*\
  !*** ./node_modules/antd/es/table/hooks/useLazyKVMap.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": function() { return /* binding */ useLazyKVMap; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


function useLazyKVMap(data, childrenColumnName, getRowKey) {
  var mapCacheRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef({});

  function getRecordByKey(key) {
    if (!mapCacheRef.current || mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
      var kvMap = new Map();
      /* eslint-disable no-inner-declarations */

      function dig(records) {
        records.forEach(function (record, index) {
          var rowKey = getRowKey(record, index);
          kvMap.set(rowKey, record);

          if (record && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__.default)(record) === 'object' && childrenColumnName in record) {
            dig(record[childrenColumnName] || []);
          }
        });
      }
      /* eslint-enable */


      dig(data);
      mapCacheRef.current = {
        data: data,
        childrenColumnName: childrenColumnName,
        kvMap: kvMap,
        getRowKey: getRowKey
      };
    }

    return mapCacheRef.current.kvMap.get(key);
  }

  return [getRecordByKey];
}

/***/ })

}]);